<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: qx::QxSimpleCrypt Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classqx_1_1_qx_simple_crypt.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">qx::QxSimpleCrypt Class Reference<div class="ingroups"><a class="el" href="group___qx_common.html">QxCommon : QxOrm library common tools and macros</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="qx::QxSimpleCrypt" -->
<p>Simple encryption and decryption of strings and byte arrays.  
 <a href="classqx_1_1_qx_simple_crypt.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>&gt;</code></p>

<p><a href="classqx_1_1_qx_simple_crypt-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a> { <a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13a08f2a90796531191b85730508813d368">CompressionAuto</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13a65ac31d6e348703c0bd9e6e248346119">CompressionAlways</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13ac9d00ef36467ec62f22770668db6778e">CompressionNever</a>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a> { <a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102a0cd4eb9b0eaf4114dd83dbe7cda38cb0">ProtectionNone</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102acb61ab7b9dd6a67548df1d4c8ba4ff03">ProtectionChecksum</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102ab53b007af157634e2fef9b68a9cea9ce">ProtectionHash</a>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">Error</a> { <a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3a6d4bdc0899c1f73d192f3e91fb1812d4">ErrorNoError</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3a6450fec142cd177f86ebdf6d906e8354">ErrorNoKeySet</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3a6e042e30ff3f99a246b929af8f8c0d45">ErrorUnknownVersion</a>, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3aec58c574a5283de57b54781da108501b">ErrorIntegrityFailed</a>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8">CryptoFlag</a> { <a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8a1ce9119bc21aa6051f5b9a10b72423d3">CryptoFlagNone</a> =  0, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8a44f8a93400f6bbb552c0a1e9fa1e99ee">CryptoFlagCompression</a> =  0x01, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8a03a3576b7201a3491da97b3f9aebf198">CryptoFlagChecksum</a> =  0x02, 
<a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8a19856b803b610ca59854e79ac8a3163e">CryptoFlagHash</a> =  0x04
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#aefcf1a67b662512bc966e8ec9e71fff2">QxSimpleCrypt</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af3b1eafe6c6fda9b5ac40cea6467c4a8">QxSimpleCrypt</a> (quint64 key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#abcdaca14124b3a6a08e93135c5dd32f4">setKey</a> (quint64 key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a44faa53e961430f9cf240eb705a42185">hasKey</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ae1016408a08e39bceb34ea5ef7abcdec">setCompressionMode</a> (<a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a> mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a95517f288ca12804a1d0faa96c2f883b">compressionMode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ab303b8aac61545259b0d651eedeba317">setIntegrityProtectionMode</a> (<a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a> mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a2dce40ec1f28c6d112a2921e4a935c50">integrityProtectionMode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a229ea2077141d885768f36fb32b92f17">lastError</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a68b909a8f62de602ed6fc633f64dc6f4">encryptToString</a> (const QString &amp;plaintext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a0b87754a4c41042ce3ee8e73210b788d">encryptToString</a> (QByteArray plaintext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#aca924407fd24ef69603e1cd5eb118219">encryptToByteArray</a> (const QString &amp;plaintext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a1155dc6c2f938a905f4b743f1fee4a12">encryptToByteArray</a> (QByteArray plaintext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a34eeb9151d16ba2c9668ec9e2b564da9">decryptToString</a> (const QString &amp;cyphertext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a42a46c43cf4d54c1c29f798b45233b0c">decryptToByteArray</a> (const QString &amp;cyphertext)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#adcb31b1e7e6f1c4771e63d738b26ffba">decryptToString</a> (QByteArray cypher)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a3f1282d17ad671ab5e7d82f75a002f28">decryptToByteArray</a> (QByteArray cypher)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a4efe60a1baefe9c372826416e8d4d813">Q_DECLARE_FLAGS</a> (CryptoFlags, <a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8">CryptoFlag</a>)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a7b055f07aa3367f21c587a4eddb8838e">splitKey</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#aaf47bbe40836d56a4cfdc3f23dd68d1c">m_key</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QVector&lt; char &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a049ddf0f9f51cd9936bb44443cfea174">m_keyParts</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ab5372cb713f5392cddb7ece5f8ce97db">m_compressionMode</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ae7df987fbdcfffc1770a9e741d357ce9">m_protectionMode</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac2fcb5b1cdb9083a2a55fccffa656060">m_lastError</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Simple encryption and decryption of strings and byte arrays. </p>
<p>This class provides a simple implementation of encryption and decryption of strings and byte arrays : <a href="http://qt-project.org/wiki/Simple_encryption">http://qt-project.org/wiki/Simple_encryption</a></p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>The encryption provided by this class is NOT strong encryption. It may help to shield things from curious eyes, but it will NOT stand up to someone determined to break the encryption. Don't say you were not warned.</dd></dl>
<p>The class uses a 64 bit key. Simply create an instance of the class, set the key, and use the <a class="el" href="classqx_1_1_qx_simple_crypt.html#a68b909a8f62de602ed6fc633f64dc6f4">encryptToString()</a> method to calculate an encrypted version of the input string. To decrypt that string again, use an instance of <a class="el" href="classqx_1_1_qx_simple_crypt.html" title="Simple encryption and decryption of strings and byte arrays.">QxSimpleCrypt</a> initialized with the same key, and call the <a class="el" href="classqx_1_1_qx_simple_crypt.html#a34eeb9151d16ba2c9668ec9e2b564da9">decryptToString()</a> method with the encrypted string. If the key matches, the decrypted version of the string will be returned again.</p>
<p>If you do not provide a key, or if something else is wrong, the encryption and decryption function will return an empty string or will return a string containing nonsense. <a class="el" href="classqx_1_1_qx_simple_crypt.html#a229ea2077141d885768f36fb32b92f17">lastError()</a> will return a value indicating if the method was succesful, and if not, why not.</p>
<p><a class="el" href="classqx_1_1_qx_simple_crypt.html" title="Simple encryption and decryption of strings and byte arrays.">QxSimpleCrypt</a> is prepared for the case that the encryption and decryption algorithm is changed in a later version, by prepending a version identifier to the cypertext. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00073">73</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="ac920bddf2aaf246b100d4263c6823c13"></a><!-- doxytag: member="qx::QxSimpleCrypt::CompressionMode" ref="ac920bddf2aaf246b100d4263c6823c13" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">qx::QxSimpleCrypt::CompressionMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>CompressionMode describes if compression will be applied to the data to be encrypted. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ac920bddf2aaf246b100d4263c6823c13a08f2a90796531191b85730508813d368"></a><!-- doxytag: member="CompressionAuto" ref="ac920bddf2aaf246b100d4263c6823c13a08f2a90796531191b85730508813d368" args="" -->CompressionAuto</em>&nbsp;</td><td>
<p>Only apply compression if that results in a shorter plaintext. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac920bddf2aaf246b100d4263c6823c13a65ac31d6e348703c0bd9e6e248346119"></a><!-- doxytag: member="CompressionAlways" ref="ac920bddf2aaf246b100d4263c6823c13a65ac31d6e348703c0bd9e6e248346119" args="" -->CompressionAlways</em>&nbsp;</td><td>
<p>Always apply compression. Note that for short inputs, a compression may result in longer data </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ac920bddf2aaf246b100d4263c6823c13ac9d00ef36467ec62f22770668db6778e"></a><!-- doxytag: member="CompressionNever" ref="ac920bddf2aaf246b100d4263c6823c13ac9d00ef36467ec62f22770668db6778e" args="" -->CompressionNever</em>&nbsp;</td><td>
<p>Never apply compression. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00082">82</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2ab6a9f23526f8428ef06510327127e8"></a><!-- doxytag: member="qx::QxSimpleCrypt::CryptoFlag" ref="a2ab6a9f23526f8428ef06510327127e8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8">qx::QxSimpleCrypt::CryptoFlag</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a2ab6a9f23526f8428ef06510327127e8a1ce9119bc21aa6051f5b9a10b72423d3"></a><!-- doxytag: member="CryptoFlagNone" ref="a2ab6a9f23526f8428ef06510327127e8a1ce9119bc21aa6051f5b9a10b72423d3" args="" -->CryptoFlagNone</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2ab6a9f23526f8428ef06510327127e8a44f8a93400f6bbb552c0a1e9fa1e99ee"></a><!-- doxytag: member="CryptoFlagCompression" ref="a2ab6a9f23526f8428ef06510327127e8a44f8a93400f6bbb552c0a1e9fa1e99ee" args="" -->CryptoFlagCompression</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2ab6a9f23526f8428ef06510327127e8a03a3576b7201a3491da97b3f9aebf198"></a><!-- doxytag: member="CryptoFlagChecksum" ref="a2ab6a9f23526f8428ef06510327127e8a03a3576b7201a3491da97b3f9aebf198" args="" -->CryptoFlagChecksum</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2ab6a9f23526f8428ef06510327127e8a19856b803b610ca59854e79ac8a3163e"></a><!-- doxytag: member="CryptoFlagHash" ref="a2ab6a9f23526f8428ef06510327127e8a19856b803b610ca59854e79ac8a3163e" args="" -->CryptoFlagHash</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00227">227</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="af8b39bde7179ef0e66a05e36c13dbbc3"></a><!-- doxytag: member="qx::QxSimpleCrypt::Error" ref="af8b39bde7179ef0e66a05e36c13dbbc3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">qx::QxSimpleCrypt::Error</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Error describes the type of error that occured. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af8b39bde7179ef0e66a05e36c13dbbc3a6d4bdc0899c1f73d192f3e91fb1812d4"></a><!-- doxytag: member="ErrorNoError" ref="af8b39bde7179ef0e66a05e36c13dbbc3a6d4bdc0899c1f73d192f3e91fb1812d4" args="" -->ErrorNoError</em>&nbsp;</td><td>
<p>No error occurred. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af8b39bde7179ef0e66a05e36c13dbbc3a6450fec142cd177f86ebdf6d906e8354"></a><!-- doxytag: member="ErrorNoKeySet" ref="af8b39bde7179ef0e66a05e36c13dbbc3a6450fec142cd177f86ebdf6d906e8354" args="" -->ErrorNoKeySet</em>&nbsp;</td><td>
<p>No key was set. You can not encrypt or decrypt without a valid key. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af8b39bde7179ef0e66a05e36c13dbbc3a6e042e30ff3f99a246b929af8f8c0d45"></a><!-- doxytag: member="ErrorUnknownVersion" ref="af8b39bde7179ef0e66a05e36c13dbbc3a6e042e30ff3f99a246b929af8f8c0d45" args="" -->ErrorUnknownVersion</em>&nbsp;</td><td>
<p>The version of this data is unknown, or the data is otherwise not valid. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af8b39bde7179ef0e66a05e36c13dbbc3aec58c574a5283de57b54781da108501b"></a><!-- doxytag: member="ErrorIntegrityFailed" ref="af8b39bde7179ef0e66a05e36c13dbbc3aec58c574a5283de57b54781da108501b" args="" -->ErrorIntegrityFailed</em>&nbsp;</td><td>
<p>The integrity check of the data failed. Perhaps the wrong key was used. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00105">105</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad4c2792e9b9e1122cf678f38c4265102"></a><!-- doxytag: member="qx::QxSimpleCrypt::IntegrityProtectionMode" ref="ad4c2792e9b9e1122cf678f38c4265102" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">qx::QxSimpleCrypt::IntegrityProtectionMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>IntegrityProtectionMode describes measures taken to make it possible to detect problems with the data or wrong decryption keys.</p>
<p>Measures involve adding a checksum or a cryptograhpic hash to the data to be encrypted. This increases the length of the resulting cypertext, but makes it possible to check if the plaintext appears to be valid after decryption. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ad4c2792e9b9e1122cf678f38c4265102a0cd4eb9b0eaf4114dd83dbe7cda38cb0"></a><!-- doxytag: member="ProtectionNone" ref="ad4c2792e9b9e1122cf678f38c4265102a0cd4eb9b0eaf4114dd83dbe7cda38cb0" args="" -->ProtectionNone</em>&nbsp;</td><td>
<p>The integerity of the encrypted data is not protected. It is not really possible to detect a wrong key, for instance. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad4c2792e9b9e1122cf678f38c4265102acb61ab7b9dd6a67548df1d4c8ba4ff03"></a><!-- doxytag: member="ProtectionChecksum" ref="ad4c2792e9b9e1122cf678f38c4265102acb61ab7b9dd6a67548df1d4c8ba4ff03" args="" -->ProtectionChecksum</em>&nbsp;</td><td>
<p>A simple checksum is used to verify that the data is in order. If not, an empty string is returned. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad4c2792e9b9e1122cf678f38c4265102ab53b007af157634e2fef9b68a9cea9ce"></a><!-- doxytag: member="ProtectionHash" ref="ad4c2792e9b9e1122cf678f38c4265102ab53b007af157634e2fef9b68a9cea9ce" args="" -->ProtectionHash</em>&nbsp;</td><td>
<p>A cryptographic hash is used to verify the integrity of the data. This method produces a much stronger, but longer check </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00096">96</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aefcf1a67b662512bc966e8ec9e71fff2"></a><!-- doxytag: member="qx::QxSimpleCrypt::QxSimpleCrypt" ref="aefcf1a67b662512bc966e8ec9e71fff2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qx::QxSimpleCrypt::QxSimpleCrypt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor.</p>
<p>Constructs a <a class="el" href="classqx_1_1_qx_simple_crypt.html" title="Simple encryption and decryption of strings and byte arrays.">QxSimpleCrypt</a> instance without a valid key set on it. </p>

</div>
</div>
<a class="anchor" id="af3b1eafe6c6fda9b5ac40cea6467c4a8"></a><!-- doxytag: member="qx::QxSimpleCrypt::QxSimpleCrypt" ref="af3b1eafe6c6fda9b5ac40cea6467c4a8" args="(quint64 key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qx::QxSimpleCrypt::QxSimpleCrypt </td>
          <td>(</td>
          <td class="paramtype">quint64&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor.</p>
<p>Constructs a <a class="el" href="classqx_1_1_qx_simple_crypt.html" title="Simple encryption and decryption of strings and byte arrays.">QxSimpleCrypt</a> instance and initializes it with the given </p>
<ul>
<li>key. </li>
</ul>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a95517f288ca12804a1d0faa96c2f883b"></a><!-- doxytag: member="qx::QxSimpleCrypt::compressionMode" ref="a95517f288ca12804a1d0faa96c2f883b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a> qx::QxSimpleCrypt::compressionMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the CompressionMode that is currently in use. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00144">144</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a42a46c43cf4d54c1c29f798b45233b0c"></a><!-- doxytag: member="qx::QxSimpleCrypt::decryptToByteArray" ref="a42a46c43cf4d54c1c29f798b45233b0c" args="(const QString &amp;cyphertext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray qx::QxSimpleCrypt::decryptToByteArray </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>cyphertext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decrypts a cyphertext string encrypted with this class with the set key back to the plain text version.</p>
<p>If an error occured, such as non-matching keys between encryption and decryption, an empty string or a string containing nonsense may be returned. </p>

</div>
</div>
<a class="anchor" id="a3f1282d17ad671ab5e7d82f75a002f28"></a><!-- doxytag: member="qx::QxSimpleCrypt::decryptToByteArray" ref="a3f1282d17ad671ab5e7d82f75a002f28" args="(QByteArray cypher)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray qx::QxSimpleCrypt::decryptToByteArray </td>
          <td>(</td>
          <td class="paramtype">QByteArray&#160;</td>
          <td class="paramname"><em>cypher</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decrypts a cyphertext binary encrypted with this class with the set key back to the plain text version.</p>
<p>If an error occured, such as non-matching keys between encryption and decryption, an empty string or a string containing nonsense may be returned. </p>

</div>
</div>
<a class="anchor" id="a34eeb9151d16ba2c9668ec9e2b564da9"></a><!-- doxytag: member="qx::QxSimpleCrypt::decryptToString" ref="a34eeb9151d16ba2c9668ec9e2b564da9" args="(const QString &amp;cyphertext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString qx::QxSimpleCrypt::decryptToString </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>cyphertext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decrypts a cyphertext string encrypted with this class with the set key back to the plain text version.</p>
<p>If an error occured, such as non-matching keys between encryption and decryption, an empty string or a string containing nonsense may be returned. </p>

</div>
</div>
<a class="anchor" id="adcb31b1e7e6f1c4771e63d738b26ffba"></a><!-- doxytag: member="qx::QxSimpleCrypt::decryptToString" ref="adcb31b1e7e6f1c4771e63d738b26ffba" args="(QByteArray cypher)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString qx::QxSimpleCrypt::decryptToString </td>
          <td>(</td>
          <td class="paramtype">QByteArray&#160;</td>
          <td class="paramname"><em>cypher</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decrypts a cyphertext binary encrypted with this class with the set key back to the plain text version.</p>
<p>If an error occured, such as non-matching keys between encryption and decryption, an empty string or a string containing nonsense may be returned. </p>

</div>
</div>
<a class="anchor" id="aca924407fd24ef69603e1cd5eb118219"></a><!-- doxytag: member="qx::QxSimpleCrypt::encryptToByteArray" ref="aca924407fd24ef69603e1cd5eb118219" args="(const QString &amp;plaintext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray qx::QxSimpleCrypt::encryptToByteArray </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>plaintext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Encrypts the </p>
<ul>
<li>plaintext string with the key the class was initialized with, and returns a binary cyphertext in a QByteArray the result.</li>
</ul>
<p>This method returns a byte array, that is useable for storing a binary format. If you need a string you can store in a text file, use <a class="el" href="classqx_1_1_qx_simple_crypt.html#a68b909a8f62de602ed6fc633f64dc6f4">encryptToString()</a> instead. </p>

</div>
</div>
<a class="anchor" id="a1155dc6c2f938a905f4b743f1fee4a12"></a><!-- doxytag: member="qx::QxSimpleCrypt::encryptToByteArray" ref="a1155dc6c2f938a905f4b743f1fee4a12" args="(QByteArray plaintext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray qx::QxSimpleCrypt::encryptToByteArray </td>
          <td>(</td>
          <td class="paramtype">QByteArray&#160;</td>
          <td class="paramname"><em>plaintext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Encrypts the </p>
<ul>
<li>plaintext QByteArray with the key the class was initialized with, and returns a binary cyphertext in a QByteArray the result.</li>
</ul>
<p>This method returns a byte array, that is useable for storing a binary format. If you need a string you can store in a text file, use <a class="el" href="classqx_1_1_qx_simple_crypt.html#a68b909a8f62de602ed6fc633f64dc6f4">encryptToString()</a> instead. </p>

</div>
</div>
<a class="anchor" id="a68b909a8f62de602ed6fc633f64dc6f4"></a><!-- doxytag: member="qx::QxSimpleCrypt::encryptToString" ref="a68b909a8f62de602ed6fc633f64dc6f4" args="(const QString &amp;plaintext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString qx::QxSimpleCrypt::encryptToString </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>plaintext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Encrypts the </p>
<ul>
<li>plaintext string with the key the class was initialized with, and returns a cyphertext the result. The result is a base64 encoded version of the binary array that is the actual result of the string, so it can be stored easily in a text format. </li>
</ul>

</div>
</div>
<a class="anchor" id="a0b87754a4c41042ce3ee8e73210b788d"></a><!-- doxytag: member="qx::QxSimpleCrypt::encryptToString" ref="a0b87754a4c41042ce3ee8e73210b788d" args="(QByteArray plaintext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString qx::QxSimpleCrypt::encryptToString </td>
          <td>(</td>
          <td class="paramtype">QByteArray&#160;</td>
          <td class="paramname"><em>plaintext</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Encrypts the </p>
<ul>
<li>plaintext QByteArray with the key the class was initialized with, and returns a cyphertext the result. The result is a base64 encoded version of the binary array that is the actual result of the encryption, so it can be stored easily in a text format. </li>
</ul>

</div>
</div>
<a class="anchor" id="a44faa53e961430f9cf240eb705a42185"></a><!-- doxytag: member="qx::QxSimpleCrypt::hasKey" ref="a44faa53e961430f9cf240eb705a42185" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool qx::QxSimpleCrypt::hasKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if <a class="el" href="classqx_1_1_qx_simple_crypt.html" title="Simple encryption and decryption of strings and byte arrays.">QxSimpleCrypt</a> has been initialized with a key. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00132">132</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2dce40ec1f28c6d112a2921e4a935c50"></a><!-- doxytag: member="qx::QxSimpleCrypt::integrityProtectionMode" ref="a2dce40ec1f28c6d112a2921e4a935c50" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a> qx::QxSimpleCrypt::integrityProtectionMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the IntegrityProtectionMode that is currently in use. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00156">156</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a229ea2077141d885768f36fb32b92f17"></a><!-- doxytag: member="qx::QxSimpleCrypt::lastError" ref="a229ea2077141d885768f36fb32b92f17" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">Error</a> qx::QxSimpleCrypt::lastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the last error that occurred. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00161">161</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4efe60a1baefe9c372826416e8d4d813"></a><!-- doxytag: member="qx::QxSimpleCrypt::Q_DECLARE_FLAGS" ref="a4efe60a1baefe9c372826416e8d4d813" args="(CryptoFlags, CryptoFlag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qx::QxSimpleCrypt::Q_DECLARE_FLAGS </td>
          <td>(</td>
          <td class="paramtype">CryptoFlags&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classqx_1_1_qx_simple_crypt.html#a2ab6a9f23526f8428ef06510327127e8">CryptoFlag</a>&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae1016408a08e39bceb34ea5ef7abcdec"></a><!-- doxytag: member="qx::QxSimpleCrypt::setCompressionMode" ref="ae1016408a08e39bceb34ea5ef7abcdec" args="(CompressionMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void qx::QxSimpleCrypt::setCompressionMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the compression mode to use when encrypting data. The default mode is Auto.</p>
<p>Note that decryption is not influenced by this mode, as the decryption recognizes what mode was used when encrypting. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00140">140</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab303b8aac61545259b0d651eedeba317"></a><!-- doxytag: member="qx::QxSimpleCrypt::setIntegrityProtectionMode" ref="ab303b8aac61545259b0d651eedeba317" args="(IntegrityProtectionMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void qx::QxSimpleCrypt::setIntegrityProtectionMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the integrity mode to use when encrypting data. The default mode is Checksum.</p>
<p>Note that decryption is not influenced by this mode, as the decryption recognizes what mode was used when encrypting. </p>

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00152">152</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="abcdaca14124b3a6a08e93135c5dd32f4"></a><!-- doxytag: member="qx::QxSimpleCrypt::setKey" ref="abcdaca14124b3a6a08e93135c5dd32f4" args="(quint64 key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void qx::QxSimpleCrypt::setKey </td>
          <td>(</td>
          <td class="paramtype">quint64&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>(Re-) initializes the key with the given </p>
<ul>
<li>key. </li>
</ul>

</div>
</div>
<a class="anchor" id="a7b055f07aa3367f21c587a4eddb8838e"></a><!-- doxytag: member="qx::QxSimpleCrypt::splitKey" ref="a7b055f07aa3367f21c587a4eddb8838e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void qx::QxSimpleCrypt::splitKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab5372cb713f5392cddb7ece5f8ce97db"></a><!-- doxytag: member="qx::QxSimpleCrypt::m_compressionMode" ref="ab5372cb713f5392cddb7ece5f8ce97db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ac920bddf2aaf246b100d4263c6823c13">CompressionMode</a> <a class="el" href="classqx_1_1_qx_simple_crypt.html#ab5372cb713f5392cddb7ece5f8ce97db">qx::QxSimpleCrypt::m_compressionMode</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00240">240</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="aaf47bbe40836d56a4cfdc3f23dd68d1c"></a><!-- doxytag: member="qx::QxSimpleCrypt::m_key" ref="aaf47bbe40836d56a4cfdc3f23dd68d1c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint64 <a class="el" href="classqx_1_1_qx_simple_crypt.html#aaf47bbe40836d56a4cfdc3f23dd68d1c">qx::QxSimpleCrypt::m_key</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00238">238</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a049ddf0f9f51cd9936bb44443cfea174"></a><!-- doxytag: member="qx::QxSimpleCrypt::m_keyParts" ref="a049ddf0f9f51cd9936bb44443cfea174" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVector&lt;char&gt; <a class="el" href="classqx_1_1_qx_simple_crypt.html#a049ddf0f9f51cd9936bb44443cfea174">qx::QxSimpleCrypt::m_keyParts</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00239">239</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac2fcb5b1cdb9083a2a55fccffa656060"></a><!-- doxytag: member="qx::QxSimpleCrypt::m_lastError" ref="ac2fcb5b1cdb9083a2a55fccffa656060" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#af8b39bde7179ef0e66a05e36c13dbbc3">Error</a> <a class="el" href="classqx_1_1_qx_simple_crypt.html#ac2fcb5b1cdb9083a2a55fccffa656060">qx::QxSimpleCrypt::m_lastError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00242">242</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae7df987fbdcfffc1770a9e741d357ce9"></a><!-- doxytag: member="qx::QxSimpleCrypt::m_protectionMode" ref="ae7df987fbdcfffc1770a9e741d357ce9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classqx_1_1_qx_simple_crypt.html#ad4c2792e9b9e1122cf678f38c4265102">IntegrityProtectionMode</a> <a class="el" href="classqx_1_1_qx_simple_crypt.html#ae7df987fbdcfffc1770a9e741d357ce9">qx::QxSimpleCrypt::m_protectionMode</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_simple_crypt_8h_source.html#l00241">241</a> of file <a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Dvlp/_Perso/QxOrm/include/QxCommon/<a class="el" href="_qx_simple_crypt_8h_source.html">QxSimpleCrypt.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceqx.html">qx</a>      </li>
      <li class="navelem"><a class="el" href="classqx_1_1_qx_simple_crypt.html">QxSimpleCrypt</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:12 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
